package com.huabo.system.oracle.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;

import javax.persistence.*;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import com.hbfk.entity.TblStaffUtil;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import org.springframework.format.annotation.DateTimeFormat;

@Table(name = "TBL_PERSONAL_TRAIN")
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="个人培训TBL_PERSONAL_TRAIN对象", description="")
public class TblPersonalTrain implements Serializable {
	
	
	@Id
    @GeneratedValue(strategy = GenerationType.IDENTITY,generator = "select HIBERNATE_SEQUENCE.nextval from dual")  
	@TableId("TRAINID")
	@ApiModelProperty(value = "主键ID,自动增长")
	private BigDecimal trainid;//主键ID,自动增长
	
	@TableField("TRAINTIME")
	@JSONField(format = "yyyy-MM-dd")
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@ApiModelProperty(value = "培训时间")
	private Date traintime;
	
	@TableField("TRAINLOCATION")
	@Column(name = "TRAINLOCATION")
	@ApiModelProperty(value = "培训地点")
	private String trainlocation;
	
	@TableField("TRAINEVIDENCE")
	@Column(name = "TRAINEVIDENCE")
	@ApiModelProperty(value = "培训证明材料")
	private String trainevidence;
	
	@TableField("TRAINWITENEE")
	@Column(name = "TRAINWITNESS")
	@ApiModelProperty(value = "培训证明人")
	private String trainwitness;
	 
	@TableField("STAFFID")
	@Column(name = "STAFFID")
	@ApiModelProperty(value = "关联用户 ")
	private String staffid;
	
	@Transient
	private String attid;
	 
}
